dde6a81b91883522562287da70832c6afa98d724,networkmonitor/src/main/java/ca/rmen/android/networkmonitor/app/dbops/backend/DBOpIntentService.java,DBOpIntentService,updateFileExportNotification,#String#String#PendingIntent#boolean#,268

Before Change


    }

    private void updateFileExportNotification(String titleText, String contentText, PendingIntent pendingIntent, boolean autoCancel) {
        NotificationCompat.Builder builder = new NotificationCompat.Builder(this);
        builder.setSmallIcon(R.drawable.ic_stat_db_op_export);
        builder.setTicker(titleText);
        builder.setContentTitle(titleText);
        builder.setContentText(contentText);
        builder.setAutoCancel(autoCancel);
        builder.setOngoing(!autoCancel);
        builder.setContentIntent(pendingIntent);
        builder.setColor(ActivityCompat.getColor(this, R.color.netmon_color));
        Notification notification = builder.build();
        NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.notify(FileExport.class.hashCode(), notification);
    }

After Change


    }

    private void updateFileExportNotification(String titleText, String contentText, PendingIntent pendingIntent, boolean autoCancel) {
        Notification notification = new NotificationCompat.Builder(this)
                .setSmallIcon(R.drawable.ic_stat_db_op_export)
                .setTicker(titleText)
                .setContentTitle(titleText)
                .setContentText(contentText)
                .setAutoCancel(autoCancel)
                .setOngoing(!autoCancel)
                .setContentIntent(pendingIntent)
                .setColor(ActivityCompat.getColor(this, R.color.netmon_color))
                .build();
        NotificationManager notificationManager = (NotificationManager) getSystemService(Context.NOTIFICATION_SERVICE);
        notificationManager.notify(FileExport.class.hashCode(), notification);
    }